
// 定义对象
var obj = {
  name: 'obj',
  say() {
  	console.log(super.toString(), super.valueOf)
    console.log('My Name is '+this.name);
    console.log('My Name is '+super.name);
  },
};
//在obj的原型上添加属性
Object.prototype.name = 'obj proto';

obj.say()


console.log('-----------------------\n')

// 定义对象
var obj = {
  name: 'obj',
  say() {
  	console.log(super.toString(), super.valueOf)
    console.log('My Name is '+this.name);
    console.log('My Name is '+super.name);
  },
};
//在obj的原型上添加属性
obj.__proto__ = {
	name : 'obj __proto__ name',
	toString() {
		return 'obj __proto__ toString 方法'
	}
}

obj.say()
